using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Ras2ClassLib;

public partial class DispalyAllaLag : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!this.IsPostBack)
        {
            FillList("");
        }
    }

    protected void FillList(String strOrderBy)
    {
        LagDoc doc = new LagDoc();
        LagCollection lag = doc.GetAllLag();

        if (lag != null)
        {
            m_GridViewLog.DataSource = lag;
            m_GridViewLog.DataBind();
        }
    }
    protected void OnGridViewPageIndexChanging(object sender, GridViewPageEventArgs e)
    {
        m_GridViewLog.PageIndex = e.NewPageIndex;
        FillList(Convert.ToString(this.ViewState["SortColumn"]));
    }

    protected void OnGridViewSorting(object sender, GridViewSortEventArgs e)
    {
        FillList(e.SortExpression);
    }

	protected void m_GridViewLog_SelectedIndexChanged(object sender, EventArgs e)
	{

	}
}
